package com.li.springbootproject.spring.aware;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.context.annotation.Configuration;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2021-05-27 08:10:22
 */
@Configuration
public class  MyBeans implements BeanNameAware {

    private static final Logger logger = LoggerFactory.getLogger(MyBeans.class);

    @Override
    public void setBeanName(String s) {
        logger.info("-----> Bean的名称为：" + s);
    }
}
